﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WeShare.WeiXin.Pay
{
    public class QueryOrderRes : BasePayRes
    {
        public string device_info { get; set; }
        public string openid { get; set; }
        /// <summary>
        /// 	用户是否关注公众账号，Y-关注，N-未关注
        /// </summary>
        public string is_subscribe { get; set; }
        /// <summary>
        /// 调用接口提交的交易类型
        /// </summary>
        public TradeType trade_type { get; set; }
        /// <summary>
        /// 交易状态
        /// </summary>
        public TradeState trade_state { get; set; }
        /// <summary>
        /// 付款银行
        /// </summary>
        public string bank_type { get; set; }
        /// <summary>
        /// 标价金额
        /// </summary>
        public int total_fee { get; set; }
        /// <summary>
        /// 应结订单金额.当订单使用了免充值型优惠券后返回该参数，应结订单金额=订单金额-免充值优惠券金额。
        /// </summary>
        public int settlement_total_fee { get; set; }
        /// <summary>
        /// 标价币种
        /// </summary>
        public string fee_type { get; set; }
        /// <summary>
        /// 现金支付金额
        /// </summary>
        public int cash_fee { get; set; }
        /// <summary>
        /// 现金支付币种
        /// </summary>
        public string cash_fee_type { get; set; }
        /// <summary>
        /// 代金券金额
        /// </summary>
        public int coupon_fee { get; set; }
        /// <summary>
        /// 代金券使用数量
        /// </summary>
        public int coupon_count { get; set; }
        /// <summary>
        /// 微信支付订单号
        /// </summary>
        public string transaction_id { get; set; }
        /// <summary>
        /// 商户系统内部订单号
        /// </summary>
        public string out_trade_no { get; set; }
        public string attach { get; set; }
        /// <summary>
        /// 订单支付时间，格式为yyyyMMddHHmmss
        /// </summary>
        public string time_end { get; set; }
        /// <summary>
        ///对当前查询订单状态的描述和下一步操作的指引
        /// </summary>
        public string trade_state_desc { get; set; }
        /// <summary>
        /// 代金券ID
        /// </summary>
        public string coupon_id_0 { get; set; }
        public string coupon_id_1 { get; set; }
        public string coupon_id_2 { get; set; }
        public string coupon_id_3 { get; set; }
        /// <summary>
        /// 代金券类型.CASH--充值代金券 NO_CASH---非充值优惠券.开通免充值券功能，并且订单使用了优惠券后有返回（取值：CASH、NO_CASH）
        /// </summary>
        public string coupon_type_0 { get; set; }
        public string coupon_type_1 { get; set; }
        public string coupon_type_2 { get; set; }
        public string coupon_type_3 { get; set; }
        /// <summary>
        /// 单个代金券支付金额
        /// </summary>
        public int coupon_fee_0 { get; set; }
        public int coupon_fee_1 { get; set; }
        public int coupon_fee_2 { get; set; }

        public int coupon_fee_3 { get; set; }
    }
}
